package com.ckk.springcloud.controller;

import com.ckk.springcloud.service.RabbitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 陈昆昆
 * @version 1.0
 * @date 2020/6/16 23:45
 */
@RestController
public class RabbitController {
    @Autowired
    private RabbitService rabbitService;


    @GetMapping("send/message")
    public String send() {
        String send = rabbitService.send();
        return send;
    }
}
